#include "Util.hpp"
#include "Config.hpp"
#include "Data.hpp"
#include "Hot.hpp"
#include "Server.hpp"
#include "Guard.hpp"
#include <thread>
Cloud::DataManger *datamanger;
void HotTest()
{
    Cloud::HotManger hot;
    DEBUG("%s", "start Business thread");
    hot.RunModule();
}
void ServerTest()
{
    Cloud::Server server;
    DEBUG("%s", "start Server thread");
    server.RunModule();
}

int main(int argc, char *argv[])
{
    Daemon();
    datamanger = new Cloud::DataManger;
    thread HotManger(HotTest); // 开启数据处理线程
    thread Server(ServerTest); // 开启业务线程
    HotManger.join();
    Server.join();
    return 0;
}